#pragma once

#include "topconn_cfg.hpp"
#include "topconn_connector.hpp"
#include "topconn_error.hpp"

#include "posix_queue.hpp"

namespace topconn
{
	class PosixConnector : public Connector
	{
	protected:
		CPosixQueue m_client;
	public:
		void checkElementCfgValid(AttributeableCfg& cfg);
		int  executor(ProtocalCfg& cfg, const string& request, string& resopnse,const string& atx);
	private:
		void initConnect(ProtocalCfg& cfg);
	};
};